package com.x.wx.model;

import java.util.Date;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

@MappingTable(tableName = "WX_USER")
public class WxUser extends BaseObject{

	private static final long serialVersionUID = 1L;

	@MappingColumn(columnName = "USER_ID", columnPk = true, columnLength = 32)
	private String userId;// userID

	@MappingColumn(columnName = "USER_OPEN_ID")
	private String userOpenId;// openId

	@MappingColumn(columnName = "USER_NICKNAME")
	private String userNickname;// 用户昵称

	@MappingColumn(columnName = "USER_HEAD_IMAGE")
	private String userHeadImage;// 用户头像

	@MappingColumn(columnName = "USER_SEX")
	private Integer userSex;// 用户性别（0：未知、1：男、2：女）

	@MappingColumn(columnName = "USER_PROVINCE_NAME")
	private String userProvinceName;// 用户所在省

	@MappingColumn(columnName = "USER_CITY_NAME")
	private String userCityName;// 用户所在市

	@MappingColumn(columnName = "USER_STATUS")
	private Integer userStatus;// 用户状态

	@MappingColumn(columnName = "USER_CREATE_TIME")
	private Date userCreateTime;// 创建时间

	@MappingColumn(columnName = "USER_UPDATE_TIME")
	private Date userUpdateTime;// 修改时间

	@MappingColumn(columnName = "ACCOUNT_ID")
	private String accountId; //  微信公众号ID

	public WxUser() {
	}

	public WxUser(String userOpenId, String userNickname, String userHeadImage,
			Integer userSex, String userProvinceName, String userCityName,
			Integer userStatus, Date userCreateTime, Date userUpdateTime, String accountId) {
		this.userOpenId = userOpenId;
		this.userNickname = userNickname;
		this.userHeadImage = userHeadImage;
		this.userSex = userSex;
		this.userProvinceName = userProvinceName;
		this.userCityName = userCityName;
		this.userStatus = userStatus;
		this.userCreateTime = userCreateTime;
		this.userUpdateTime = userUpdateTime;
		this.accountId = accountId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserOpenId() {
		return userOpenId;
	}

	public void setUserOpenId(String userOpenId) {
		this.userOpenId = userOpenId;
	}

	public String getUserNickname() {
		return userNickname;
	}

	public void setUserNickname(String userNickname) {
		this.userNickname = userNickname;
	}

	public String getUserHeadImage() {
		return userHeadImage;
	}

	public void setUserHeadImage(String userHeadImage) {
		this.userHeadImage = userHeadImage;
	}

	public Integer getUserSex() {
		return userSex;
	}

	public void setUserSex(Integer userSex) {
		this.userSex = userSex;
	}

	public String getUserProvinceName() {
		return userProvinceName;
	}

	public void setUserProvinceName(String userProvinceName) {
		this.userProvinceName = userProvinceName;
	}

	public String getUserCityName() {
		return userCityName;
	}

	public void setUserCityName(String userCityName) {
		this.userCityName = userCityName;
	}

	public Integer getUserStatus() {
		return userStatus;
	}

	public void setUserStatus(Integer userStatus) {
		this.userStatus = userStatus;
	}

	public Date getUserCreateTime() {
		return userCreateTime;
	}

	public void setUserCreateTime(Date userCreateTime) {
		this.userCreateTime = userCreateTime;
	}

	public Date getUserUpdateTime() {
		return userUpdateTime;
	}

	public void setUserUpdateTime(Date userUpdateTime) {
		this.userUpdateTime = userUpdateTime;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
}
